package com.wanmait.schedule.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.schedule.entity.CoursePlan;
import com.wanmait.schedule.entity.Schedule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 课程表 服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface ScheduleService extends IService<Schedule> {

    List<Schedule> findAll();

    List<Schedule> findByClassesAndTime(Integer classesId,String beginTime,String endTime);
    //获取前台课表
    List<Schedule> findByClassesAndTimeWeb(Integer classesId,String beginTime,String endTime);

    //删除本周全部的课
    void delete(String beginTime,String endTime);

    int findNum(Integer courseId,Integer classesId,Date date);

    //发布课表
    void publish(String beginTime,String endTime);

    //查看上周课表是否发布
    List<Schedule> checkPublish(String time);

    //查看这周课表是否发布
    List<Schedule> checkPublish(String beginTime,String endTime);

    //查看这周是否有课
    List<Schedule> find(String beginTime,String endTime);
}
